<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" th:href="@{assets/css/layui.css}">
    <link rel="stylesheet" th:href="@{assets/css/admin.css}">
    <link rel="icon" href="img/favicon.ico">
    <link rel="stylesheet" data-th-href="@{css/material-design-iconic-font/css/material-design-iconic-font.min.css}">
    <title>数据运营后台</title>
</head>
<body class="layui-layout-body">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header custom-header">
            
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item slide-sidebar" lay-unselect>
                    <a href="javascript:;" class="icon-font"><i class="ai ai-menufold"></i></a>
                </li>
            </ul>

            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <a href="javascript:;" ><img th:src="'img/avatar/'+${user.avatar}" class="layui-nav-img"><span th:text="${user.username}"></span></a>
                    <dl class="layui-nav-child">
                        <!--<dd><a id="Profile" data-cli="user/profile">个人信息</a></dd>-->
                        <!--<dd><a data-th-href="@{channel}">切换渠道</a></dd>-->
                        <dd><a data-th-href="@{logout}">退出登录</a></dd>
                    </dl>
                </li>
            </ul>
        </div>

        <div class="layui-side custom-admin">
            <div class="layui-side-scroll">

                <div class="custom-logo">
                    <img src="assets/images/logo.png" alt=""/>
                    <h1>Fast Admin</h1>
                </div>
                <ul id="Nav" class="layui-nav layui-nav-tree">
                    <li class="layui-nav-item" th:each="m:${menu.children}">
                        <a href="javascript:;">
                            <i th:class="${m.icon}"></i>
                            <em th:text="${m.text}"></em>
                        </a>
                        <dl class="layui-nav-child" th:each="c:${m.children}">
                            <dd><a th:href="${c.url}" th:text="${c.text}"></a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>

        <div class="layui-body">
             <div class="layui-tab app-container" lay-allowClose="true" lay-filter="tabs">
                <ul id="appTabs" class="layui-tab-title custom-tab"></ul>
                <div id="appTabPage" class="layui-tab-content"></div>
            </div>
        </div>
        <div class="layui-footer">
            <p>© 2018 fulihui.com</p>
        </div>

        <div class="mobile-mask"></div>
    </div>
    <script th:src="@{assets/layui.js}"></script>
    <script th:src="@{assets/index.js}" data-main="home"></script>
</body>
<script data-th-inline="javascript">
    var ctx = [[@{/}]];
        var userName = [[${user.username}]];
        var theme = [[${user.theme}]];
        var channelCode = [[${session.channelCode}]];
        var avatar = ctx + "img/avatar/" + [[${user.avatar}]];
</script>
</html>